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
I think this is a matter of style.  I've seen it done both ways and both works.  For this test file, I had my minimalist hat on and have it if the method calls it.  Less clutter.  If this method gets more complicated that this, we can make the change then.