Added some small extra tests.
Refactor: started splitting up filters & validation (relates #5), removed direct function call to native functions (relates #3), added factories for Value & Error objects (fixes #2).