ported more tests from angular