added support for variables without appended 'px'
removed logs and added a test case