tests for base handler