angular testing with require