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
Good catch.  Will update this.