moving tests to test, adding guard
fixing hardcoded directory path in test