Refactor backend tests for nose integration