Added unit tests, moved unused files to admin