Repaired the test directory, changed the package structure to reflect the application package structure and added new tests for the LpcWriter.