refactored get tests