added unit tests for find_empty_position method