add -a code to tests
Merge pull request #22 from cjihrig/tests

Add -a code to tests