Move test success message from Makefile to test.lua
Add some element length assertions to test.lua