testing functions

Code added to enable testing of location manipulation functions