321 AMP unit testing

When running PHPUnit, different test environments will assume different running directories for the unit tests. This needed to be accommodated.

This should only affect the testing code, and not the production code.

Fixes #321.