refactored bike test and code