Add tests for railtie