moved tests to file they apply to, following idiom described in rust manual