fixing some errors, and running tests on vagrant