testing infastructure, rspec tests
removed files directory
fix broken tests

These tests were broken before, because they didn't mock the right
method.