Move test code to test package

Signed-off-by: Chris Sanders <zidane@outlook.com>