Refactor variable type cast
Add rake task for running tests
Ignore bundle and binstub directories