Created JUnit tests for Safe