Feature/josie tests

Summary of changes:
(1) Update and create separate file for ap_top method from views.py
(2) Create new unit tests for new methods from utils.py
The change to 'resource_link_id' : ANY would not apply here, as it is specified as ANY.  No change here.