Index: tests/regression/Molecules/RotateAroundBond/post/benzene_90degree.pdb
===================================================================
--- tests/regression/Molecules/RotateAroundBond/post/benzene_90degree.pdb	(revision 8efcf414fd48744c1bfbda1acfab9dc397649efa)
+++ tests/regression/Molecules/RotateAroundBond/post/benzene_90degree.pdb	(revision 8efcf414fd48744c1bfbda1acfab9dc397649efa)
@@ -0,0 +1,22 @@
+REMARK created by molecuilder on Thu May 18 21:51:03 2017, time step 0
+ATOM      1 H01 0non 01          5.007   5.929   6.222  0.00  0.00           H 0
+ATOM      2 C01 0non 01          6.087   5.936   6.216  0.00  0.00           C 0
+ATOM      3 C02 0non 01          6.795   5.937   7.419  0.00  0.00           C 0
+ATOM      4 C03 0non 01          6.781   5.937   5.004  0.00  0.00           C 0
+ATOM      5 C04 0non 01          8.175   5.945   7.404  0.00  0.00           C 0
+ATOM      6 C05 0non 01          8.161   5.945   5.004  0.00  0.00           C 0
+ATOM      7 H02 0non 01          6.264   5.932   8.360  0.00  0.00           H 0
+ATOM      8 H03 0non 01          6.240   5.931   4.070  0.00  0.00           H 0
+ATOM      9 H04 0non 01          8.724   5.947   8.334  0.00  0.00           H 0
+ATOM     10 H05 0non 01          8.704   5.012   5.006  0.00  0.00           H 0
+CONECT    1    2                                                                
+CONECT    2    1    3    4                                                      
+CONECT    3    2    5    7                                                      
+CONECT    4    2    6    8                                                      
+CONECT    5    3    9                                                           
+CONECT    6    4   10                                                           
+CONECT    7    3                                                                
+CONECT    8    4                                                                
+CONECT    9    5                                                                
+CONECT   10    6                                                                
+END
Index: tests/regression/Molecules/RotateAroundBond/pre/benzene.pdb
===================================================================
--- tests/regression/Molecules/RotateAroundBond/pre/benzene.pdb	(revision 8efcf414fd48744c1bfbda1acfab9dc397649efa)
+++ tests/regression/Molecules/RotateAroundBond/pre/benzene.pdb	(revision 8efcf414fd48744c1bfbda1acfab9dc397649efa)
@@ -0,0 +1,26 @@
+REMARK created by molecuilder on Mon May 15 12:23:36 2017, time step 0
+ATOM      1 H01 0non 01          5.000   7.145   5.002  0.00  0.00           H 0
+ATOM      2 C01 0non 01          6.080   7.145   5.001  0.00  0.00           C 0
+ATOM      3 C02 0non 01          6.781   8.352   5.004  0.00  0.00           C 0
+ATOM      4 C03 0non 01          6.781   5.937   5.004  0.00  0.00           C 0
+ATOM      5 C04 0non 01          8.161   8.345   5.004  0.00  0.00           C 0
+ATOM      6 C05 0non 01          8.161   5.945   5.004  0.00  0.00           C 0
+ATOM      7 C06 0non 01          8.849   7.145   5.001  0.00  0.00           C 0
+ATOM      8 H02 0non 01          6.245   9.290   5.006  0.00  0.00           H 0
+ATOM      9 H03 0non 01          6.245   5.000   5.007  0.00  0.00           H 0
+ATOM     10 H04 0non 01          8.705   9.278   5.005  0.00  0.00           H 0
+ATOM     11 H05 0non 01          8.704   5.012   5.006  0.00  0.00           H 0
+ATOM     12 H06 0non 01          9.929   7.145   5.000  0.00  0.00           H 0
+CONECT    1    2                                                                
+CONECT    2    1    3    4                                                      
+CONECT    3    2    5    8                                                      
+CONECT    4    2    6    9                                                      
+CONECT    5    3    7   10                                                      
+CONECT    6    4    7   11                                                      
+CONECT    7    5    6   12                                                      
+CONECT    8    3                                                                
+CONECT    9    4                                                                
+CONECT   10    5                                                                
+CONECT   11    6                                                                
+CONECT   12    7                                                                
+END
Index: tests/regression/Molecules/RotateAroundBond/testsuite-molecules-rotate-around-bond.at
===================================================================
--- tests/regression/Molecules/RotateAroundBond/testsuite-molecules-rotate-around-bond.at	(revision 5e17bf3ec7daf123299bac22362c704fe9e0a1eb)
+++ tests/regression/Molecules/RotateAroundBond/testsuite-molecules-rotate-around-bond.at	(revision 8efcf414fd48744c1bfbda1acfab9dc397649efa)
@@ -86,2 +86,13 @@
 
 AT_CLEANUP
+
+AT_SETUP([Molecules - Rotate around bond on almost complete cycle])
+AT_KEYWORDS([molecules rotate-around-bond])
+
+file=benzene_90degree.pdb
+AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Molecules/RotateAroundBond/pre/benzene.pdb $file], 0)
+AT_CHECK([chmod u+w $file], 0)
+AT_CHECK([../../molecuilder -i $file --select-atom-by-order -1 -6 --remove-atom --select-atom-by-id 3 5 --rotate-around-bond 90.], 0, [stdout], [stderr])
+AT_CHECK([diff -I '.*reated by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Molecules/RotateAroundBond/post/$file], 0, [ignore], [ignore])
+
+AT_CLEANUP
