[test] edge case testing and error conditions