Some basic API initialization and usage tests in JUnit