added tests and rails dummy app