unit tests and acceptance tests for jackyc (Ka Seng Chou)