enhance tests for better readability and type checks