restructured packages and added first frontend unit test