Updated build file to separate test and build

Signed-off-by: Nicholas Jackson <nic@thatlondon.com>