added additional test cases, documented tests