refactored getThen
added 2 test cases for async catalog fns