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
'resource_link_id' : ANY will need to be added to the dict in line 56 to be in line with the new URL patterns. views.py needs to be changed similarly.