Camera tests

Refactored camera.rb
Added tests