Spec tests

Adding various spec tests to cover things that I found broken during vagrant hand testing.